from likeshop.base.mybase import Tools


# 改变购物车数量
class change_cart_model(Tools):
    # 定义登录路径
    path = "/page/cart/change"

    # 发送登录请求
    def change_cart_action(self, sbid, spsl, db):
        mydata = {
            'cart_id': sbid,
            'goods_num': spsl
        }
        res = self.session.post(url=self.hosturl+self.path, data=mydata, headers=db)
        return res.json()


